import { createVNode, render } from 'vue'

export const myDirective = (app) => {
  app.directive('my-directive', {
    mounted(el, binding) {
      console.log('mounted', el, binding)
      const node = createVNode('div', {}, [createVNode('p', {}, binding.value)])
      render(node, el)
    },
  })
}
